package com.google.code.head2head.gwtmodules.client.login;

import com.google.gwt.user.client.ui.DialogBox;

public class LoginDialogBox extends DialogBox {
    //private final DialogBox loginDialogBox = new DialogBox();
    private final LoginPanel.LoginListener loginListener;
    private final LoginPanel loginPanel;

    public LoginDialogBox(final LoginPanel.LoginListener loginListener) {
        super();
        this.loginListener = loginListener;
        //initWidget(loginDialogBox);
        loginPanel = new LoginPanel(loginListener);
        //loginDialogBox.setText("Foo");
        setText("Login");
        //loginDialogBox.setWidget(loginPanel);
        setWidget(loginPanel);
        //setWidget(new Label("burp"));
    }
}
